﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Alogient.Cameleon.Membership
{
    public enum UserFieldDataType
    {
        Textbox,
        TextArea,
        Integer,
        Float,
        Date
    }

    public class CustomUserField
    {
        public string ApplicationName { get; private set; }
        public string Name { get; private set; }
        public int Order { get; set; }
        public bool IsRequired { get; set; }
        public UserFieldDataType DataType { get; private set; }
        public string CultureCode { get; private set; }
        public string Label { get; set; }

        private CustomUserField()
        {
            Label = string.Empty;
            CultureCode = string.Empty;
            IsRequired = false;
            Name = string.Empty;
            ApplicationName = string.Empty;
        }

        public CustomUserField(string name, string cultureCode) : this()
        {
            throw new NotImplementedException("Not implemented"); // TODO
        }

        public CustomUserField(string name, UserFieldDataType dataType, string cultureCode) : this(name, cultureCode)
        {
            throw new NotImplementedException("Not implemented"); // TODO
        }


        public bool Save()
        {
            throw new NotImplementedException("Not implemented"); // TODO
        }

        public static bool Exist(string name)
        {
            throw new NotImplementedException("Not implemented"); // TODO
        }

        public static List<CustomUserField> GetAll(string cultureCode)
        {
            throw new NotImplementedException("Not implemented"); // TODO
        }

        public static bool Delete(string name)
        {
            throw new NotImplementedException("Not implemented"); // TODO
        }
    }
}
